package kr.hkit.powerjava.chapter05;

public class 정수타입 {

	public static void main(String[] args) {
		System.out.println("byte : " + Byte.MIN_VALUE + " ~ " + Byte.MAX_VALUE);
		System.out.println("short : " + Short.MIN_VALUE + " ~ "
				+ Short.MAX_VALUE);
		System.out.println("int : " + Integer.MIN_VALUE + " ~ "
				+ Integer.MAX_VALUE);
		System.out.println("long : " + Long.MIN_VALUE + " ~ " + Long.MAX_VALUE);

		byte test;
		test = (byte) 300;
		System.out.println("test: " + test);

		System.out.println("float : " + Float.MIN_VALUE + " ~ "
				+ Float.MAX_VALUE);
		System.out.println("double : " + Double.MIN_VALUE + " ~ "
				+ Double.MAX_VALUE);

		int x = 11, y = 2;

		System.out.println(x);
		System.out.println(y);
		x *= y + 1;
		System.out.println(x);

	}

}
